import { F } from '../utils/http'
const { POST, GET } = F('product/')
class ProductApi {
  constructor() {}
  search = (req) => GET('search', req)
  find = (id) => GET('find', { id })
  update = (req) => POST('update', req)
  remove = (id) => GET('remove', { id })
}
export default new ProductApi()
